#ifndef REQUESTMAPPER_H
#define REQUESTMAPPER_H

#include "httprequesthandler.h"
#include "boxnumbercontroller.h"
#include "opinfcontroller.h"
#include <QMainWindow>

using namespace stefanfrings;

//QT_BEGIN_NAMESPACE
//namespace Ui { class MainWindow; }
//QT_END_NAMESPACE

class RequestMapper : public HttpRequestHandler
{
    Q_OBJECT
public:
    explicit RequestMapper(QObject* parent=0);
    void service(HttpRequest& request, HttpResponse& response);

private slots:
    void receiveOpinfData(QString serial, QString data);   //关联HTTP POST的自定义槽函数
    void receiveBoxData(QString serial, QString data);   //关联HTTP GET的自定义槽函数

signals:
    void sendRequesfMain(QString,QString);   //用来传递到主界面数据的信号


private:
    BoxNumberController *boxNumberController;
    OpinfController *opinfController;
//    LoginController loginController;



};

#endif // REQUESTMAPPER_H
